import request from '@/utils/request'

// 首页统计数据(全量)
export function getTotalData() {
  return request({
    url: '/system/home/count',
    method: 'get',
  })
}

// 首页漏斗统计数据(今日、本周、本月)
export function getFunnelData(type) {
  return request({
    url: '/system/home/funnelCount?type=' + type,
    method: 'get',
  })
}

// 首页折线图数据
export function getOrderData() {
  return request({
    url: '/system/home/discountChart',
    method: 'get',
  })
}

